//
// Created by 喵喵乐 on 2023/4/22.
//

#ifndef CMAKECXX_STRING_BAD_H
#define CMAKECXX_STRING_BAD_H

#include <iostream>

class string_bad {
private:
    char *str;
    int len;
    static int num_strings;
public:
    string_bad(const char *str);

    string_bad();

    ~string_bad();


    // 友元方法，使用构造类重载 << 运算符
    friend std::ostream &operator<<(std::ostream &os, const string_bad &st);

};


#endif //CMAKECXX_STRING_BAD_H
